package com.ele.service;

import com.ele.pojo.OrderVO;
import com.ele.pojo.Orders;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ele.pojo.ResponseData;

/**
* @author 28444
* @description 针对表【orders】的数据库操作Service
* @createDate 2024-04-13 09:49:16
*/
public interface OrdersService extends IService<Orders> {
    /**
     * 添加订单
     * @param orderVO
     * @return
     */
    ResponseData<Orders> addOrder(OrderVO orderVO);

    /**
     * 修改订单状态
     * @param tradeNo
     */
    void updateOrderState(String tradeNo);
    /**
     * 查询全部订单
     */
    ResponseData<Orders> getOrderList(String userId);
}